<include file="Public::header" />
    <div>
        <php> if ($user && in_array(ACTION_NAME,array('infoset','photoupload','linkset'))){ </php>
        <a href="{:U('memcp/infoset')}" title="帐号设置">帐号设置</a> | <a href="{:U('memcp/photoupload')}" title="头像设置">头像设置</a> | <a href="linkset" title="链接管理">链接管理</a>
        <php> } </php>
    </div>
    <div class="main">
        <div class="zxx_out_box">
            <div class="zxx_in_box">
                <div class="zxx_main_con">
                    <div class="zxx_test_list">
                        <div class="rel mb20">
                            <div style="width:610px; border:3px solid #ccc;">
                                <img id="thumb_bbb" src="<php>echo ($img_preview) ? $img_preview : __APP__.'/resources/image/u/'.$normal;</php>" width=580/><div>
                                <span id="preview_box" class="crop_preview" style="height:350px;width:350px;">
                                    <img id="crop_preview" src="<php>echo ($img_preview) ? $img_preview : __APP__.'/resources/image/u/'.$user['user_info']['large_img'] ;</php>" /></span>
                                <span id="preview_box" class="crop_preview" style="height:160px;width:160px;top:350px;">
                                    <img id="crop_preview1" src="<php>echo ($img_preview) ? $img_preview : __APP__.'/resources/image/u/'.$user['user_info']['middle_img'] ;</php>" /></span>
                                <span id="preview_box" class="crop_preview" style="height:75px;width:75px;top:510px;">
                                    <img id="crop_preview2" src="<php>echo ($img_preview) ? $img_preview : __APP__.'/resources/image/u/'.$user['user_info']['small_img'] ;</php>" />
                                </span>
                        </div>
                        <form action="{:U('memcp/photocropsave')}" method="post" id="crop_form">
                            <input type="hidden" id="x" name="x" />
                            <input type="hidden" id="y" name="y" />
                            <input type="hidden" id="w" name="w" />
                            <input type="hidden" id="h" name="h" />
                            <input type="button" value="确认剪裁" id="crop_submit" />
                        </form>
  	                    <form name="photo" enctype="multipart/form-data" action="{:U('memcp/photoupload')}" method="post">
                            <span>上传照片:<span>
                            <input type="file" name="photo" />
                            <input type="submit" name="submit" value="submit" />
                        </form>

                    </div>
                </div>
            </div>
        </div>
    </div>
<include file="Public::footer" />